<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //我们可以使用默认值（如""、null或 ）初始化特定大小的数组0
        const array = Array(5).fill('');
        // 输出
        console.log(array);

        const matrix = Array(5).fill(0).map(()=>Array(5).fill(0));
        // 输出
        console.log(matrix);


    </script>
</body>
</html>